import request from '@/utils/request';

export function getAllArea() {
  return request({
    url: '/museum-role/super/area/getAllArea',
    method: 'get'
  });
}

export function addArea(params) {
  return request({
    url: '/museum-role/super/area/addArea',
    method: 'post',
    data: params
  });
}

export function updateArea(params) {
  return request({
    url: '/museum-role/super/area/updateArea',
    method: 'put',
    data: params
  });
}

export function deleteArea(areaNumber) {
  return request({
    url: `/museum-role/super/area/deleteArea?areaNumber=${areaNumber}`,
    method: 'delete'
  });
}
